package com.hlkj.pay.app.merchant.ext.impl.baofu.dto.res;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.util.json.JsonUtils;
import com.hlkj.pay.app.merchant.ext.impl.baofu.util.BaoFuSigner;
import lombok.Data;

import java.io.UnsupportedEncodingException;

/**
 * @author HlpayTeam
 * @date 2024/12/21 14:11
 */
@Data
public class BaoFuReportAmountNotifyRes {

    private String amount;
    private String record_time;

    private String remark;
    private String peer_acc_no;
    private String peer_acc_name;
    private String peer_bank_no;
    private String peer_bank_name;
    private String acct_id;

    public static void main(String[] args) throws UnsupportedEncodingException {
        BaoFuReportAmountNotifyRes baoFuReportAmountNotifyRes=new BaoFuReportAmountNotifyRes();
        baoFuReportAmountNotifyRes.setAmount("100");
        baoFuReportAmountNotifyRes.setRecord_time("20241224142611");
        baoFuReportAmountNotifyRes.setRemark("测试数据");
        baoFuReportAmountNotifyRes.setPeer_acc_no("x");
        baoFuReportAmountNotifyRes.setPeer_acc_name("y");
        baoFuReportAmountNotifyRes.setPeer_bank_no("z");
        baoFuReportAmountNotifyRes.setPeer_bank_name("x");
        baoFuReportAmountNotifyRes.setAcct_id("2241223000000220");
        String data = JsonUtils.toJsonString(baoFuReportAmountNotifyRes);
        System.out.println(BaoFuSigner.Base64Encode(data));

    }
}
